package com.pojo;

import java.util.List;

public class PageBean<T> {
	private int currentPage;
	private int pagesize;
	private int pages;
	private int count;
	private List<T> list;
	public PageBean() {}
	public PageBean(int currentPage, int pagesize, int pages, int count, List<T> list) {
		super();
		this.currentPage = currentPage;
		this.pagesize = pagesize;
		this.pages = pages;
		this.count = count;
		this.list = list;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getPages() {
		return pages;
	}
	public void setPages(int pages) {
		this.pages = pages;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "PageBean [currentPage=" + currentPage + ", pagesize=" + pagesize + ", pages=" + pages + ", count="
				+ count + ", list=" + list + "]";
	}
}
